def to_binary(decimal: int) -> str:
    reminders = []
    reminder = decimal % 2
    equotient = decimal // 2
    reminders.append(str(reminder))
    while equotient:
        reminder = equotient % 2
        reminders.append(str(reminder))
        equotient //= 2
    return ''.join(reminders[::-1])


if __name__ == '__main__':
    print(to_binary(5))